'''
Created on Jan 22, 2010

@author: christianp
'''
import unittest
from BruTile.RequestTms import RequestTms
from BruTile.TileInfo import TileInfo

class URequestTms(unittest.TestCase):

    def test_get_uri(self):
        print("URequestTms: test_getters_setters")
        request_tms = RequestTms("http://a.tile.openstreetmap.org","png")
        tile_info = TileInfo()
        tile_info.set_key(2,2,2)
        self.assertEqual(request_tms.get_uri(tile_info.get_key()),"http://a.tile.openstreetmap.org/2/2/2.png","request_tms.get_uri(tile_info)")     
        pass

if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()